cmake_minimum_required(VERSION 2.8.3)
project(video)
set(CMAKE_CXX_STANDARD 11)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  std_msgs
  cv_bridge
  image_transport
)

find_package(OpenCV)

catkin_package()

include_directories(
  include
  ${OpenCV_INCLUDE_DIRS}
  ${catkin_INCLUDE_DIRS}
)


add_executable(video src/video.cpp)

add_dependencies(video ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})

target_link_libraries(video
   ${catkin_LIBRARIES}
   ${OpenCV_LIBRARIES}
   /usr/lib/x86_64-linux-gnu/libavcodec.so
   /usr/lib/x86_64-linux-gnu/libavformat.so
   /usr/lib/x86_64-linux-gnu/libswscale.so
   /usr/lib/x86_64-linux-gnu/libavutil.so
)


